<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017-7-5
  Time: 16:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="BASE" value="${pageContext.request.contextPath}" />
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>cust_show</title>
</head>
<body>
    <table>
        <tr>
            <td>客户ID</td>
            <td>客户编号</td>
            <td>客户姓名</td>
            <td>手机号</td>
            <td>邮箱</td>
            <td>备注</td>
            <td>操作</td>
        </tr>
        <c:forEach var="cust" items="${custList}">
            <tr>
                <td>${cust.id}</td>
                <td>${cust.cust_no}</td>
                <td>${cust.cust_name}</td>
                <td>${cust.phone_no}</td>
                <td>${cust.email}</td>
                <td>${cust.remark}</td>
                <td>
                    <a href="${BASE}/cust_edit?id=${cust.id}">编辑</a>
                    <a href="${BASE}/cust_delete?id=${cust.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
